package com.kly.order.db.dao;
import com.fqgj.common.base.BaseMapper;
import com.kly.order.db.entity.MemberEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* User: 11437
* Date: 2023-05-31
* Time: 17:06:59.452
*/

public interface MemberDao  extends BaseMapper<MemberEntity> {
    /**
     * 获取会员信息
     */
    MemberEntity getMembers(String userCode, Date date);

    public List<MemberEntity> selectByUser(Map<String, Object> params);

    public List<MemberEntity> selectMembers(String userCode);

    /**
     * 判断用户是否是会员
     * @param params
     * @return
     */
    public Integer ifMember(Map<String, Object> params);
    /**
     * 判断用户是否是会员
     */
    Boolean ifMember(String userCode);

}